package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.base.model.PageParams;
import com.xuecheng.base.model.PageResult;
import com.xuecheng.content.model.dto.*;
import com.xuecheng.content.model.po.CourseBase;

import java.util.Map;


/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-10-07
 */
public interface CourseBaseService extends IService<CourseBase> {

    PageResult<CourseBaseInfoDto> list(PageParams pageParams, QueryCourseParamsDto queryCourseParamsDto);

    CourseBaseInfoDto createCourseBase(Long companyId, CourseTeacherDto courseTeacher, AddCourseDto addCourseDto);

    CourseBaseInfoDto updateCourseDase(Long companyId, EditCourseDto editCourseDto);

    CourseBaseInfoDto selectCourseBaseAndMarketById(Long courseId);

    void deleteCourseBase(Long courseId);

    Boolean updateCoursePic(Long courseId, String picUrl);

    Map<String, String> courseIdExtractMd5(String courseId);

    CourseBase selectById(Long courseId);
}
